package com.qf.day09.lxjk;

public class FlyUtils {
    public static void trainFlier(Flyable flyable){
            flyable.fly();
    }
    public static void eat(Flyable flyable){
        flyable.eat();
    }
    public static void Dogeat(Flyable flyable){
        flyable.eat();
    }
    public static void HeroSwim(jk2able jk2able){
        jk2able.swim();
    }
    public static void HeroName(jk2able jk2able){
        System.out.println(jk2able.tf());

    }
    public static void main(String[] args) {
        Hero hero = new Hero("超人");
        Dog xiaohuang = new Dog("小黄");
        Hero joker = new Hero("小丑");
        trainFlier(hero);
        eat(hero);
        Dogeat(xiaohuang);
        HeroSwim(joker);
        HeroSwim(hero);
        System.out.println("*************");
        HeroName(joker);
        HeroName(hero);
    }
}
